<include file="Public:head" />
<div id="wrap">
    <div id="school_index">{$type=0|getAreaName} <a href="__APP__/?type=clean">[切换位置]</a></div>
    <div id="container" class="clearfix">
        <div id="left" class="shadow s_menu" style="background:white">
            <div id="s_tab" style="border-bottom:0;background:white;">
                <p>搜索<span style=" color:#F57543">{$keyword}</span>结果</p>
            </div>
            <if condition="$total eq 0">
                <div class="resultList">
                    <p class="noserchresult">没有搜到相关菜品信息！</p>
                </div>
            </if>
            <ul class='resultListresupplier'>
                <foreach name="shops" item="row">
                    <li>
                        <div class="si_block {$row.business_time|getShopCla=###,$row['weeks'],$row['is_busy']}"  style='margin:5px 0px 0px 10px'>
                            <div class='si_logo'><a href="{:U('Area/detail',array('id'=>$row['id']))}" target='_blank'>
                                    <img src='__APP__/{$row.logo}'   width='43px' height='43px'></a></p>
                                <p titlt='平均送餐时间{$row.sendtime}分钟'>{$row.sendtime}分钟</p>
                            </div>
                            <div class='si_info'>
                                <p class='si_name'>
                                    <a href="{:U('Area/detail',array('id'=>$row['id']))}" target='_blank'>{$row.name}</a>
                                </p>
                                <p class='si_rec'>{$row.star|getStar=###}</p>
                                <p class='si_ac'style="color:#999">{$row.business_time|getShopState=###,$row['weeks'],$row['is_busy']}</p>
                            </div>
                        </div>
                    </li>
                </foreach>
            </ul>
            <foreach name="arr" item="row">
                <div class="resultList">
                    <div class="listTitle">
                        <div class="resultRst"> 
                            <a href="{:U('Area/detail',array('id'=>$row['id']))}">
                                <img src="__APP__/{$row.logo}" height="40" width="40" alt="" 
                                     class="result_pic"/></a>
                            <div class="resultRst_title">
                                <a href="{:U('Area/detail',array('id'=>$row['id']))}">{$row.name}</a>
                            </div>
                            <p class='si_rec'>{$row.star}</p>

                        </div>
                        <div class="resultCount">共计{$row.num}条结果</div>

                    </div>
                    <ul>
                    <foreach name="row['goods']" item="row2">
                      
                        <li class="resultFood" href="{:U('Area/detail',array('id'=>$row['id']))}">
                                <span class="resultFood_title ib">{$row2.name}</span>
                                <span class="resultFood_money ib">
                                    <if condition="$row2.discount gt 0"><del>{$row2.price}</del></if> 
                                    <span class="price">{$row2['price']-$row2['discount']|getOneDot=###}</span>
                                </span>
                                <a id="btn_{$row2.gid}" class="addToOrder active" data-id="{$row2.gid}" data-price="{$row2.price}" data-name="{$row2.name}" onclick="addToOrder($(this), '{$row2.gid}')"> </a>
                                <div class='cl'></div>
                            </li>
                   
                    </foreach>
                         </ul>
                </div>
            </foreach>

        </div>
        <include file="Public:areaRight" />
    </div>
    <include file="Public:foot" />